import React,{ Component } from 'react';
import {
    BrowserRouter as Router,
    Route
} from 'react-router-dom';
import Login from '../page/system/login'
import Order from '../page/setting/order'
import carType from '../page/about/car_type'
import Comment from '../page/user/comment'
import Rider from '../page/guide/rider'
import trapDetail from '../page/news/trap_detail'
import Index from '../page/view/index'

export default class RouterMap extends Component{
    constructor(props){
        super(props);
    }
    render(){
        return (
            <Router>
                <div style={{ width: '100%',height: '100%'}}>
                    <Route path="/h5/login" component={ Login } />
                    <Route path="/h5/order" component={ Order } />
                    <Route path="/h5/cartype" component={ carType } />
                    <Route path="/h5/comment" component={ Comment } />
                    <Route path="/h5/rider" component={ Rider } />

                    <Route path="/h5/trapdetail" component={ trapDetail } />
                    <Route path="/h5/index" component={ Index } />
                </div>
            </Router>
        )
    }
}